const http=require('http');

let server=http.createServer();
server.on('request',function(request,response){
    response.writeHead(200,{'Content-Type':'text/html;charset=UTF-8'});
    response.write(`URL: ${request.url}<br/>`);
    response.write(`IP: ${request.socket.localAddress}<br/>`);
    response.end(`PORT: ${request.socket.remotePort}<br/>`);
});
server.listen(8080,function(){
    console.log('Server running at http://127.0.0.1:8080');
})
